import matplotlib.pyplot as plt
import numpy as np
plt.rcParams['font.sans-serif']=['KaiTi']
x=['徐州','连云港','宿迁','济宁','淮北','临沂','枣庄','商丘','菏泽','宿州']
y=[883,452,592,836,225,1067,393,733,878,586]
y1=[7320,3277,3262,4494,1119,4805,1733,2925,3483,2045]
x1=np.arange(len(x))
width=0.3
plt.bar(x1,y, width,color='#6699CC')
plt.bar(x1+width,y1,width,color="#FFCCCC")
plt.xticks(x1,x)
plt.legend(['常住人口(万人)','经济总量(亿元)'],loc='upper right')
plt.show()